package com.echo.blog.business.elasticsearch.model;

import com.netflix.discovery.provider.Serializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author chentl123
 * @since 2019-09-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Serializer
@Document(indexName = "search", type = "history")
public class EsHistory {

    private static final long serialVersionUID = 1L;

    @Field(type = FieldType.text, analyzer = "ik_max_word")
    private String serachWord;

}
